/**
 * <p>Title: SignatureRest</p>
 * <p>Description: The Interface of Signature Svc</p>
 * <p>Copyright: Shanghai Batchsight Pharmaceutical Technologies, Inc. Copyright(c) 2016</p>
 * @author Huang Zhongwei
 * @version 1.0
 * <pre>Histroy:
 *       2016-11-28  Huang Zhongwei  Create
 *</pre>
*/

package cn.jhg.account.rest;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.UriInfo;


/**
 * 签名资源
 * @author Huang Zhongwei
 *
 */
@Path("/signature")
public interface SignatureRest {


	/**
	 * 查询签名定义
	 * @param id	签名定义id
	 * @return		
	 */
    @Path("/query")
    @GET
    @Produces({MediaType.APPLICATION_JSON, })
    public String querySignatureDefinition(@QueryParam("id") int id);
    
	/**
	 * 签名确认
	 * @param sid  签名id
	 * @param comment 签名备注
	 * @return
	 */
    @Path("/confirm")
    @GET
    @Produces({MediaType.APPLICATION_JSON, })
    public String signConfirmation(@QueryParam("sid") int sid,
    		@QueryParam("account") String account,
    		@QueryParam("password") String password,
    		@QueryParam("comment") String comment
    		);
    /**
	 * 确认签名
	 * @param id	签名id
	 * @return		
	 */
    @Path("/confirms")
    @GET
    @Produces({MediaType.APPLICATION_JSON, })
    public String signConfirmations(
    		@QueryParam("sid")int sdid,
    		@Context UriInfo ui);
}
